package com.dhwl.hsh.driver.ui.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.dhwl.hsh.lib.view.viewpagerindicator.IconPagerAdapter;
import com.dhwl.hsh.driver.R;
import com.dhwl.hsh.driver.ui.fragment.GuideFragment;


/**
 * guide 页面的是适配器
 *
 * @author Derek.Kidd
 * @time 2016/4/29 11:02
 */
public class GuideFragmentAdapter extends FragmentPagerAdapter{


    public GuideFragmentAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        return GuideFragment.newInstance(position);
    }

    @Override
    public int getCount() {
        return 3;
    }
}